set(src_dirs
            LED
			KEY
			EXIT
			UART
			ESPTIM
			GPTIM
			WDT
			SW_PWM
			HW_PWM
			IIC
			XL9555
			24CXX
			LCD
			SPI
			RTC
			ADC
			AP3216C
			EMISSION
			SENSOR
			RNG
			QMA6100P
			CAMERA
			SDIO)

set(include_dirs
            LED
			KEY
			EXIT
			UART
			ESPTIM
			GPTIM
			WDT
			SW_PWM
			HW_PWM
			IIC
			XL9555
			24CXX
			LCD
			SPI
			RTC
			ADC
			AP3216C
			EMISSION
			SENSOR
			RNG
			QMA6100P
			CAMERA
			SDIO)

set(requires
            driver
			esp_timer
			newlib
			esp_adc
			espressif__esp32-camera
			esp_lcd
			fatfs)

idf_component_register(SRC_DIRS ${src_dirs} INCLUDE_DIRS ${include_dirs} REQUIRES ${requires})

component_compile_options(-ffast-math -O3 -Wno-error=format=-Wno-format)